{% for model in models %}
<div class="card mb-2">
    <div class="card-body p-3">
        <h6 class="card-title mb-1">{{ model.emission_source }}</h6>
        <p class="card-text small mb-1">
            <span class="me-3">分类: {{ model.model_category_path|default('未分类') }}</span>
            <span class="me-3">单位: {{ model.emission_unit }}</span>
            <span>因子: {{ model.factor_name }}</span>
        </p>
        <button type="button" class="btn btn-sm btn-outline-primary add-source-btn" data-model-id="{{ model.id }}">添加</button>
    </div>
</div>
{% else %}
<div class="alert alert-info">未找到匹配的排放源</div>
{% endfor %}